﻿<UserControl x:Class="PmuRegistry.Silverlight.MasterLayoutControl"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    xmlns:igMenu="clr-namespace:Infragistics.Silverlight.XamWebMenu;assembly=Infragistics.Silverlight.XamWebMenu.v9.1"      
    xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation" Background="{StaticResource PageBackgroundBrush}"
    >
    <Grid x:Name="GridLayoutRoot" Background="{StaticResource PageBackgroundBrush}" HorizontalAlignment="Stretch">
        <StackPanel Orientation="Horizontal" HorizontalAlignment="Center" x:Name="StackPanelRoot">
            <Canvas x:Name="LayoutRoot" Background="Transparent" VerticalAlignment="Top" HorizontalAlignment="Left" Height="750" Width="900">
            <Canvas.RenderTransform>
                <ScaleTransform x:Name="LayoutRootScale" ScaleX="1" ScaleY="1"/>
            </Canvas.RenderTransform>
            <Grid  Canvas.Left="10" Canvas.Top="1" Background="Transparent" Height="750" Width="900">
                <Grid.RowDefinitions>
                    <RowDefinition Height="*" />
                    <RowDefinition Height="11*" />
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="*"/>
                    <ColumnDefinition Width="2*"/>
                </Grid.ColumnDefinitions>                

                <Border BorderThickness="1" BorderBrush="#FFFFFFFF" Grid.Column="0" Grid.Row="0" Margin="2">
                    <Image Source="Images/NaspiPmuRegistry.PNG" Margin="1,0,1,0"></Image>
                </Border>
                <!--<StackPanel Orientation="Vertical" Grid.Row="0" Grid.Column="0" Background="{StaticResource HeaderBackgroundBrush}" HorizontalAlignment="Stretch">
                <TextBlock Text="North American Synchrophasor Initiative" Style="{StaticResource LargeWhiteTextWithEffectStyle}" />
                <TextBlock Text="PMU Registry" Style="{StaticResource MainTitleStyle}" />
            </StackPanel>-->

                <StackPanel Orientation="Vertical" Grid.Row="0" Grid.Column="1" Background="{StaticResource HeaderBackgroundBrush}" HorizontalAlignment="Stretch">
                    <!--<StackPanel Orientation="Horizontal" HorizontalAlignment="Right">
                    <TextBlock Text="Execution Mode: " Style="{StaticResource SmallWhiteTextStyle}" />
                    <TextBlock x:Name="TextBlockExecutionMode" Style="{StaticResource SmallWhiteTextStyle}" />
                    <Button x:Name="ButtonChangeMode" Template="{StaticResource SmallImageButtonTemplate}" Content="Images/Mode.png" ToolTipService.ToolTip="Click Here to Change Execution Mode" />
                </StackPanel>-->
                    <!--<StackPanel Orientation="Horizontal" HorizontalAlignment="Right">
                    <TextBlock Text="Connectivity: " Style="{StaticResource SmallWhiteTextStyle}"/>
                    <TextBlock x:Name="TextBlockConnectivity" Style="{StaticResource SmallWhiteTextWithEffectStyle}"/>
                </StackPanel>-->
                    <StackPanel Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Top">                        
                        <ComboBox x:Name="ComboBoxInterconnection" Margin="1" Height="20" HorizontalAlignment="Right" VerticalAlignment="Top"  DisplayMemberPath="Value" FontSize="{StaticResource LargeTextSize}" Width="{StaticResource LargerItemSize}">                            
                        </ComboBox>
                        <ComboBox x:Name="ComboBoxNercRegion" Margin="1" Height="20" HorizontalAlignment="Right" VerticalAlignment="Top"  DisplayMemberPath="Value" FontSize="{StaticResource LargeTextSize}" Width="{StaticResource LargeItemSize}">
                        </ComboBox>                        
                        <ComboBox x:Name="ComboBoxCompany" Margin="1" Height="20" HorizontalAlignment="Right" VerticalAlignment="Top"  DisplayMemberPath="Value" FontSize="{StaticResource LargeTextSize}" Width="{StaticResource LargeItemSize}">
                        </ComboBox>
                        <Button x:Name="ButtonFilter" Foreground="White" Content="Images/Filter.png" Tag="" Template="{StaticResource ImageButtonTemplate}" VerticalAlignment="Center" HorizontalAlignment="Right" Margin="2"/>
                    </StackPanel>
                    <TextBlock Text=" " Style="{StaticResource SmallWhiteTextStyle}"/>
                    <StackPanel Orientation="Horizontal" HorizontalAlignment="Right" VerticalAlignment="Center">
                        <igMenu:XamWebMenu x:Name="MenuMain" Style="{StaticResource XamWebMenuStyle}" NavigationElement="{Binding ElementName=ContentFrame}">
                            <igMenu:XamWebMenuItem Header="Home" Style="{StaticResource XamWebMenuItemStyleMainMenu}" NavigationOnClick="True" NavigationUri="/Pages/QuickView.xaml"/>
                            <igMenu:XamWebMenuItem Header="Devices" Style="{StaticResource XamWebMenuItemStyleMainMenu}">
                                <igMenu:XamWebMenuItem Header="Browse" Style="{StaticResource XamWebMenuItemStyleMainMenu}" NavigationOnClick="True" NavigationUri="/Pages/Devices/Browse.xaml">
                                    <igMenu:XamWebMenuItem.Icon>
                                        <Image Source="Images/List.png" />
                                    </igMenu:XamWebMenuItem.Icon>
                                </igMenu:XamWebMenuItem>
                                <igMenu:XamWebMenuItem Header="Add New" Style="{StaticResource XamWebMenuItemStyleMainMenu}" NavigationOnClick="True" NavigationUri="/Pages/Devices/AddNew.xaml">
                                    <igMenu:XamWebMenuItem.Icon>
                                        <Image Source="Images/Pmu.png" />
                                    </igMenu:XamWebMenuItem.Icon>
                                </igMenu:XamWebMenuItem>
                                <igMenu:XamWebMenuItem Header="Device Wizard" Style="{StaticResource XamWebMenuItemStyleMainMenu}" NavigationOnClick="True" NavigationUri="/Pages/Devices/InputWizard.xaml">
                                    <igMenu:XamWebMenuItem.Icon>
                                        <Image Source="Images/Configuration.png" />
                                    </igMenu:XamWebMenuItem.Icon>
                                </igMenu:XamWebMenuItem>
                                <igMenu:XamWebSeparator />
                                <!--<igMenu:XamWebMenuItem Header="Other Devices" Style="{StaticResource XamWebMenuItemStyleMainMenu}" NavigationOnClick="True" NavigationUri="">
                                <igMenu:XamWebMenuItem.Icon>
                                    <Image Source="Images/List.png" />
                                </igMenu:XamWebMenuItem.Icon>
                            </igMenu:XamWebMenuItem>-->
                                <!--<igMenu:XamWebMenuItem Header="Add New" Style="{StaticResource XamWebMenuItemStyleMainMenu}" NavigationOnClick="True" NavigationUri="">
                                <igMenu:XamWebMenuItem.Icon>
                                    <Image Source="Images/Pmu.png" />
                                </igMenu:XamWebMenuItem.Icon>
                            </igMenu:XamWebMenuItem>-->
                            </igMenu:XamWebMenuItem>
                            <igMenu:XamWebMenuItem Header="Manage" Style="{StaticResource XamWebMenuItemStyleMainMenu}">
                                <!--<igMenu:XamWebMenuItem Header="Reliability Coordinators" Style="{StaticResource XamWebMenuItemStyleMainMenu}" NavigationOnClick="True" NavigationUri="">
                                <igMenu:XamWebMenuItem.Icon>
                                    <Image Source="Images/RC.png" />
                                </igMenu:XamWebMenuItem.Icon>
                            </igMenu:XamWebMenuItem>-->
                                <igMenu:XamWebMenuItem Header="Companies" Style="{StaticResource XamWebMenuItemStyleMainMenu}" NavigationOnClick="True" NavigationUri="/Pages/Manage/Companies.xaml">
                                    <igMenu:XamWebMenuItem.Icon>
                                        <Image Source="Images/Company.png" />
                                    </igMenu:XamWebMenuItem.Icon>
                                </igMenu:XamWebMenuItem>
                                <igMenu:XamWebSeparator />
                                <igMenu:XamWebMenuItem Header="Measurements" Style="{StaticResource XamWebMenuItemStyleMainMenu}" NavigationOnClick="True" NavigationUri="/Pages/Manage/Measurements.xaml">
                                    <igMenu:XamWebMenuItem.Icon>
                                        <Image Source="Images/Measure.png" />
                                    </igMenu:XamWebMenuItem.Icon>
                                </igMenu:XamWebMenuItem>
                                <igMenu:XamWebMenuItem Header="Network Model" Style="{StaticResource XamWebMenuItemStyleMainMenu}" NavigationOnClick="True" NavigationUri="/Pages/Manage/NetworkModels.xaml">
                                    <igMenu:XamWebMenuItem.Icon>
                                        <Image Source="Images/Model.png" />
                                    </igMenu:XamWebMenuItem.Icon>
                                </igMenu:XamWebMenuItem>
                                <!--<igMenu:XamWebMenuItem Header="Historians" Style="{StaticResource XamWebMenuItemStyleMainMenu}" NavigationOnClick="True" NavigationUri="">
                                <igMenu:XamWebMenuItem.Icon>
                                    <Image Source="Images/Computers.png" />
                                </igMenu:XamWebMenuItem.Icon>
                            </igMenu:XamWebMenuItem>-->
                                <igMenu:XamWebSeparator />
                                <igMenu:XamWebMenuItem Header="Vendors" Style="{StaticResource XamWebMenuItemStyleMainMenu}" NavigationOnClick="True" NavigationUri="/Pages/Manage/Vendors.xaml">
                                    <igMenu:XamWebMenuItem.Icon>
                                        <Image Source="Images/Vendor.png" />
                                    </igMenu:XamWebMenuItem.Icon>
                                </igMenu:XamWebMenuItem>
                                <igMenu:XamWebMenuItem Header="Vendor Devices" Style="{StaticResource XamWebMenuItemStyleMainMenu}" NavigationOnClick="True" NavigationUri="/Pages/Manage/VendorDevices.xaml">
                                    <igMenu:XamWebMenuItem.Icon>
                                        <Image Source="Images/Pmu.png" />
                                    </igMenu:XamWebMenuItem.Icon>
                                </igMenu:XamWebMenuItem>
                                <igMenu:XamWebSeparator />
                                <igMenu:XamWebMenuItem Header="System Settings" Style="{StaticResource XamWebMenuItemStyleMainMenu}" NavigationOnClick="True" NavigationUri="/Pages/Manage/SystemSettings.xaml">
                                    <igMenu:XamWebMenuItem.Icon>
                                        <Image Source="Images/Configuration.png" />
                                    </igMenu:XamWebMenuItem.Icon>
                                </igMenu:XamWebMenuItem>                            
                            </igMenu:XamWebMenuItem>
                            <igMenu:XamWebMenuItem Header="Comments" Style="{StaticResource XamWebMenuItemStyleMainMenu}" NavigationOnClick="True" NavigationUri="/Pages/Comments.xaml" />                                
                        </igMenu:XamWebMenu>
                        
                        <Button x:Name="ButtonLogout" Content="Images/Logout.png" ToolTipService.ToolTip="Click Here to Logout" Tag="Logout" Template="{StaticResource ImageButtonTemplate}" VerticalAlignment="Center" Foreground="#FFFFFFFF" Margin="20,0,0,0" Cursor="Hand">
                            <Button.RenderTransform>
                                <ScaleTransform x:Name="ButtonLogoutTransform" ScaleX="1" ScaleY="1" />
                            </Button.RenderTransform>
                        </Button>
                        
                        <!--<TextBlock Text="" Width="{StaticResource XXXSmallItemSize}" />
                    <TextBlock Text="Node: " FontWeight="Bold" Margin="5" Foreground="#FFFFFFFF" />
                    <nodesControl:SelectNode x:Name="UserControlSelectNode" Background="Transparent" />-->
                    </StackPanel>
                </StackPanel>

                <Border x:Name="BorderMain" Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="2" Style="{StaticResource MainBorderStyle}" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">

                    <ScrollViewer HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto" BorderThickness="0">

                        <navigation:Frame x:Name="ContentFrame" Source="/Pages/Login.xaml" Padding="2" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">

                        </navigation:Frame>

                    </ScrollViewer>

                </Border>

            </Grid>
        </Canvas>
        </StackPanel>
    </Grid>
</UserControl>
